package pojo;

import java.util.Date;

public class SongRequest {
    private int requestId;      // 请求 ID
    private int requesterId;    // 点歌人 ID，关联到 Users 表
    private int songId;         // 歌曲 ID，关联到 Songs 表
    private int recipientId;    // 被点歌人 ID，关联到 Users 表
    private Date createTime;    // 创建时间

    // 无参构造函数
    public SongRequest() {
    }

    // 有参构造函数
    public SongRequest(int requesterId, int songId, int recipientId, Date createTime) {
        this.requesterId = requesterId;
        this.songId = songId;
        this.recipientId = recipientId;
        this.createTime = createTime;
    }

    // Getter 和 Setter 方法

    public int getRequestId() {
        return requestId;
    }

    public void setRequestId(int requestId) {
        this.requestId = requestId;
    }

    public int getRequesterId() {
        return requesterId;
    }

    public void setRequesterId(int requesterId) {
        this.requesterId = requesterId;
    }

    public int getSongId() {
        return songId;
    }

    public void setSongId(int songId) {
        this.songId = songId;
    }

    public int getRecipientId() {
        return recipientId;
    }

    public void setRecipientId(int recipientId) {
        this.recipientId = recipientId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    // 重写 toString 方法（可选）
    @Override
    public String toString() {
        return "SongRequest{" +
                "requestId=" + requestId +
                ", requesterId=" + requesterId +
                ", songId=" + songId +
                ", recipientId=" + recipientId +
                ", createTime=" + createTime +
                '}';
    }
}
